package com.zwb.demo.easyweb.modules.database.entity;

import com.zwb.demo.easyweb.common.entity.ValueEnum;

/**
 * 同步状态
 * @author zwb
 */
public enum SyncState implements ValueEnum<Integer> {
    NO_SYNC("未同步", 0),
    HAVE_SYNC("已同步", 1),
    ;
    private String key;
    private Integer value;

    SyncState(String key, Integer value) {
        this.key = key;
        this.value = value;
    }

    @Override
    public String getKey() {
        return key;
    }

    @Override
    public Integer getValue() {
        return value;
    }
}
